const FORBIDDEN_CODE = 403;

/**
 * 永封 IP
 * @type {string[]}
 */
const BLACK_IP_LIST = ["111.202.85.21", "114.117.161.191", "82.156.28.118"];

/**
 * 数据库配置
 */

const MYSQL_CONFIG = {
  host: "localhost",
  port: 3306,
  dialect: "mysql",
};

/**
 * 数据库账号
 */
const MYSQL_ACCOUNT = {
  user: "root",
  password: "root",
  dataBaseName: "danzi",
};

/**
 * 微信配置
 */
const WX_CONFIG = {
  appId: "wxc999f0329cXXXXX",
  appSecret: "acb70f35b48ff02c67513e5123XXXXXXX",
};

/**
 * JWT配置
 */

const JWT_CONFIG = {
  secret: "hashan123",
  expiresIn: "24h",
};

/**
 * 七牛云配置
 */

const QINIU_CONFIG = {
  accessKey: "dnLtxRFn7U_7KLzqARHvClLG-pA8ghXXXXXXXXXX", // AK密钥
  secretKey: "NNlr3okMHSl3jRRsTUc-nS_BRl9zA1p6ilXXXXXX", // SK密钥
  scope:"hashantemp" // 空间名
};


module.exports = {
  FORBIDDEN_CODE,
  BLACK_IP_LIST,
  MYSQL_CONFIG,
  MYSQL_ACCOUNT,
  WX_CONFIG,
  JWT_CONFIG,
  QINIU_CONFIG,
};
